# -*- coding: utf-8 -*-
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# 作者：cacho_37967865
# 博客：https://blog.csdn.net/sinat_37967865
# 文件：object_class.py
# 日期：2019-08-29
# 备注：类class对象
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

class Person:
    #__init__()有点像构造函数，实例化类时调用
    def __init__(self,name,gender):
    #name是实例的属性
        self.name = name
        self.gender = gender
    #live是类的属性
    live = True

p1 = Person ("zhangan","男")
print(p1.name)
p2 = Person ("lisi","女")
print(p2.name)

print(p1)
print(id(p1))
print(type(p1))

print(Person)
print(id(Person))
print(type(Person))

class Person1:
    live = True
print(Person1)